##! /bin/bash
#! bash
#
#  $Id: to_category.sh 3 2010-05-27 16:25:49Z alistair.mills@btinternet.com $
#

### Main script stars here ###
# Store file name  here
export       OUTPUT=$1
export      OUTPUT2=$2
[ -f $OUTPUT  ] && rm $OUTPUT
[ -f $OUTPUT2 ] && rm $OUTPUT2
for cat in act cul soc
do
    . ./categories.sh
    echo Adding $cat as $category
    echo "insert into \`tblCategory\` (\`cat\` ,   \`category\` ) \
                              values (\"$cat\",   \"$category\" );" >> $OUTPUT
    echo                             "\"$cat\";\"$category\""       >> $OUTPUT2
done
#
#
#
